# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding field 'Entrant.university'
        db.add_column('facebook_entrant', 'university', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['facebook.University'], null=True), keep_default=False)


    def backwards(self, orm):
        
        # Deleting field 'Entrant.university'
        db.delete_column('facebook_entrant', 'university_id')


    models = {
        'facebook.entrant': {
            'Meta': {'object_name': 'Entrant'},
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '200', 'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'size': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '30'}),
            'university': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['facebook.University']", 'null': 'True'})
        },
        'facebook.facebookcompetition': {
            'Meta': {'object_name': 'FacebookCompetition'},
            'app_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'primary_key': 'True'}),
            'app_secret': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
            'closing_date': ('django.db.models.fields.DateField', [], {}),
            'opening_date': ('django.db.models.fields.DateField', [], {}),
            'university': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'facebook_competition_competition'", 'to': "orm['facebook.University']"})
        },
        'facebook.university': {
            'Meta': {'object_name': 'University'},
            'closedImage': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'entryImage': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'facebookShareCaption': ('django.db.models.fields.TextField', [], {}),
            'facebookShareDescription': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '200', 'db_index': 'True'})
        }
    }

    complete_apps = ['facebook']
